package com.example.dsplatform.pojo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.security.PrivateKey;

/**
 * @author wdx3004
 */
@Data//set get
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName(value = "USERT",autoResultMap = true)
@ApiModel(value = "User", description = "用户实体")
public class User {
    @TableId(value = "UTID", type = IdType.AUTO)
    @ApiModelProperty(value = "用户ID", dataType = "String")
    private String id;
    @TableField(value = "username")
    @ApiModelProperty(value = "用户名", dataType = "String")
    private String username;
    @TableField(value = "password")
    @ApiModelProperty(value = "用户密码", dataType = "String")
    private String password;
    @TableField(value = "phone")
    @ApiModelProperty(value = "用户手机号", dataType = "String")
    private String phone;
    @ApiModelProperty(value = "身份证号", dataType = "String")
    @TableField(value = "identity")
    private String identity;
    @ApiModelProperty(value = "激活状态", dataType = "String")
    @TableField(value = "state")
    private Integer state;
    @TableField(value = "email")
    private String email;

/*    @TableField(value = "age")
    private Integer age;
    @TableField(value = "dept")
    private String dept;*/
}
